﻿/*
 * Created by SharpDevelop.
 * User: IEscarro
 * Date: 8/25/2009
 * Time: 4:57 PM
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */

using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;

namespace Miming.Gui
{
	/// <summary>
	/// Description of BaseUserControl.
	/// </summary>
	public partial class BaseUserControl : UserControl
	{
		object model;
		
		public object Model {
			get { return model; }
			set { model = value; OnModelChanged(null); }
		}
		
		public BaseUserControl()
		{
			//
			// The InitializeComponent() call is required for Windows Forms designer support.
			//
			InitializeComponent();
			
		}
		
		protected virtual void OnModelChanged(EventArgs e)
		{
			if (ModelChanged != null) {
				ModelChanged(this, e);
			}
		}
		
		public event EventHandler ModelChanged;
	}
}
